package com.geping.etl.common.controller;


import com.geping.etl.common.util.BusinessResponse;
import com.geping.etl.common.util.BusinessResult;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author jianfeng.zhu
 * @Description 服务健康检查
 * @Date 17:40 2021/2/8
 **/
@RestController
@RequestMapping("/health")
@Api(value = "/health", description = "健康检查url")
@Slf4j
public class HealthCheckController {

    @RequestMapping
    public BusinessResult healthCheck(){
        log.info("healthCheck success");
        return new BusinessResult(BusinessResponse.SUCCESS);
    }

}
